﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProgNetComponents.Design.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public sealed class CtorParamAttribute : Attribute
    {
        /// <summary>
        /// Gets Constructor with 
        /// </summary>
        public int CtorNo
        {
            get;
            private set;
        }
        public int ParamNo
        {
            get;
            private set;
        }
        public bool AllowNull
        {
            get;
            private set;
        }

        public CtorParamAttribute(int paramNo, int ctorNo = 1, bool allowNull = false)
        {
            this.CtorNo = ctorNo;
            this.ParamNo = paramNo;
            this.AllowNull = allowNull;
        }
    }
}
